#ifndef __KEY_H_
#define __KEY_H_

#include "gpio.h"
#include "tim.h"
#include "main.h"
#include "stdbool.h"

struct keys
{
	unsigned char judge_sta;
	bool key_sta;
	bool single_flag;
};

typedef enum 
{
	ZERO,
	PASS_1 = 1,
	PASS_2,
	PASS_3,
	VERIFY
}MYKEY;




void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);
MYKEY KEY_getb1( void );




#endif
